/*****************************************************************************/
/**
*
* @file beep.h
*
* Header file for uiic.c.
* Target device: STM32F103RET6.
*
* <pre>
* MODIFICATION HISTORY:
*
* Ver   Who    Date   	Changes
* ----- ---- ---------- -------------------------------------------------------
* 0.01  abu  01/27/2020 Created
* </pre>
*
*------------------------------------------------------------------------------
* Author:	abu
*					E-mail:	abu_liu@opencores.org
*------------------------------------------------------------------------------
*
******************************************************************************/
#ifndef BEEP_H		/* prevent circular inclusions */
#define BEEP_H		/* by using protection macros */

#ifdef __cplusplus
	extern "C" {
#endif

/***************************** Include Files *********************************/
#include "stm32f10x.h"

/************************** Constant Definitions *****************************/
#define BEEP_PORT	GPIOA
#define BEEP_PORT_CLK	RCC_APB2Periph_GPIOA
#define BEEP_PIN GPIO_Pin_4
#define beep_on()		GPIO_SetBits(BEEP_PORT,BEEP_PIN)
#define beep_off()	GPIO_ResetBits(BEEP_PORT,BEEP_PIN)
		
/************************** Function Declarations ****************************/
void beep_init(void);
		
#ifdef __cplusplus
}
#endif

#endif
